package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.OverflowListDao;
import com.atguigu.jxc.entity.OverflowList;
import com.atguigu.jxc.service.OverflowListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 杨林
 * @create 2023-01-29 18:13 星期日
 * description:
 */
@Service
public class OverflowListServiceImpl implements OverflowListService {

    @Autowired
    OverflowListDao overflowListDao;

    /**
     * 保存overflowList
     * @param overflowList
     */
    @Override
    public void save(OverflowList overflowList) {
        overflowListDao.save(overflowList);
    }

    /**
     * 报溢单查询
     * @param sTime
     * @param eTime
     * @return
     */
    @Override
    public List<OverflowList> list(String sTime, String eTime) {

        return overflowListDao.list(sTime,eTime);
    }
}
